7a6616bb3dbeb884d3f599c12eff8441d51a9c65,src/main/java/org/zalando/planb/provider/AuthorizeController.java,AuthorizeController,noConsentedScopesResponse,#URI#Optional#,396

Before Change



    private AuthorizeResponse noConsentedScopesResponse(final URI redirectUri, final Optional<String> state)
        throws URISyntaxException {
        final AuthorizeResponse authorizeResponse = new AuthorizeResponse();
        final URI redirect = new URIBuilder(redirectUri).addParameter(PARAM_ERROR, PARAM_ERROR_ACCESS_DENIED)
                                                        .addParameter(PARAM_STATE, state.orElse(EMPTY_STRING)).build();
        authorizeResponse.setRedirect(redirect.toString());
        return authorizeResponse;
    }

After Change


                .addParameter(PARAM_ERROR, PARAM_ERROR_ACCESS_DENIED)
                .addParameter(PARAM_STATE, state.orElse(EMPTY_STRING))
                .build();
        return AuthorizeResponse
                .builder()
                .redirect(redirect.toString())
                .build();
    }